package com.k3cloud.core.core;


import com.hustcad.plm.pdm.flowbusiness.model.entity.FlowObject;
import com.k3cloud.base.dto.entity.ExecutionTypeDO;
import com.k3cloud.base.work.WorkInterfaceType;
import com.k3cloud.base.work.WorkRoutineServer;
import com.k3cloud.core.entity.K3CloudTypeEnum;
import com.k3cloud.core.factory.out.OutputImplementationFactory;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 物料处理服务
 */
@Service
@WorkInterfaceType(typeValue = "k3cloudProject",classificationValue = "MaterialsHandling")
public class MaterialsHandling implements WorkRoutineServer {


    @Override
    public Map<String,Object>  productionCall(ExecutionTypeDO executionType, String code, String name, FlowObject flowObject, Object parameter) throws Exception {
        Map<String,Object> outMap= OutputImplementationFactory.getOutDataToMap(executionType, K3CloudTypeEnum.MaterialsHandling, code, name, flowObject, parameter);
        return outMap;
    }
}
